<template>
    <tr >
       <td>{{ usertime }}</td>
       <td>{{ doctorname }}</td>
       <td>{{ diagnostic }}</td>
       <td>{{ prescription }}</td>
       <td @click="allDetails">{{ details }}</td>
    </tr>
</template>

<script>
 export default {
   name: 'VisitRecord',
   props: ['usertime', 'doctorname', 'diagnostic', 'prescription', 'details'],

   methods: {
    allDetails() {
        alert(` 就诊记录详情
          就诊日期： ${this.usertime},
          医生姓名: ${this.doctorname},
          诊断结果: ${this.diagnostic},
          处方信息: ${this.prescription}, `)
    }
   }
 }
</script>

<style scoped lang='less'>

</style>